package com.zj.sms.bean;

import lombok.Data;

@Data
public class UrlRecordVo {
	int index;//层数
	String url;//lianjie
	String path;//到该链接的路径，该链接是怎样一层层连下来的
	String name;//该层的连接名称
	public UrlRecordVo(){}
	public UrlRecordVo(int index,String name,String path,String url){
		this.index = index;
		this.url = url;
		this.path = path+"-->["+name+"]"+url;
		this.name = name;
	}
	@Override
	public boolean equals(Object uv){
		if(uv == null) return false;
		if(url.equals(((UrlRecordVo)uv).getUrl())) return true;
		return false;
	}
	@Override
	public int hashCode(){
		return super.hashCode();
	}
	@Override
	public String toString(){
		return url+"\t"+index+"\t"+path+"["+name+"]";
	}
}
